package com.lcj.aoch.rule.controller.form;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Schema(description = "计算系统奖励的表单")
public class CalculateIncentiveFeeForm {
  @NotNull(message = "driverId不能为空")
  @Min(value = 1L, message = "driverId不能小于1")
  @Schema(description = "司机ID")
  private long driverId;
  
  private String acceptTime;
  
  public void setDriverId(long driverId) {
    this.driverId = driverId;
  }
  
  public void setAcceptTime(String acceptTime) {
    this.acceptTime = acceptTime;
  }
  
  public CalculateIncentiveFeeForm(long driverId, String acceptTime) {
    this.driverId = driverId;
    this.acceptTime = acceptTime;
  }
  
  public CalculateIncentiveFeeForm() {}
  
  public String toString() {
    return "CalculateIncentiveFeeForm(driverId=" + getDriverId() + ", acceptTime=" + getAcceptTime() + ")";
  }
  
  public boolean equals(Object o) {
    if (o == this)
      return true; 
    if (!(o instanceof CalculateIncentiveFeeForm))
      return false; 
    CalculateIncentiveFeeForm other = (CalculateIncentiveFeeForm)o;
    if (!other.canEqual(this))
      return false; 
    if (getDriverId() != other.getDriverId())
      return false; 
    Object this$acceptTime = getAcceptTime(), other$acceptTime = other.getAcceptTime();
    return !((this$acceptTime == null) ? (other$acceptTime != null) : !this$acceptTime.equals(other$acceptTime));
  }
  
  protected boolean canEqual(Object other) {
    return other instanceof CalculateIncentiveFeeForm;
  }
  
  public int hashCode() {
    int PRIME = 59;
    int result = 1;
    long $driverId = getDriverId();
    result = result * 59 + (int)($driverId >>> 32L ^ $driverId);
    Object $acceptTime = getAcceptTime();
    return result * 59 + (($acceptTime == null) ? 43 : $acceptTime.hashCode());
  }
  
  public long getDriverId() {
    return this.driverId;
  }
  
  public String getAcceptTime() {
    return this.acceptTime;
  }
}
